package team.you.ticket.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import team.you.ticket.pojo.Ticket;

public interface TicketMapper {
    int deleteByPrimaryKey(String id);

    int insert(Ticket record);

    Ticket selectByPrimaryKey(String id);

    List<Ticket> selectAll();

    int updateByPrimaryKey(Ticket record);

    Ticket selectByUserId(@Param("userid") String userid, @Param("trainNumId") String trainNumId);

    List<Ticket> selectFlow(@Param("userid") String userid,@Param("page") Integer page, @Param("limit") Integer limit);

    Integer getPages();

    Integer updateByType(String ticketId);
}